package com.shan.design.combination.transparent;

/**
 * description
 *
 * @author shanzheng <br/>
 * @date 17:54 2018/11/29.<br/>
 * Modified By <br/>
 */
public class VideoFile extends AbstractFile {
    private String name;

    public VideoFile(String name) {
        this.name = name;
    }

    @Override
    void add(AbstractFile file) {
        System.out.println("不支持该操作");
    }

    @Override
    void remove(AbstractFile file) {
        System.out.println("不支持该操作");
    }

    @Override
    AbstractFile getChild(int i) {
        System.out.println("不支持该操作");
        return null;
    }

    @Override
    void killVirus() {
        //模拟杀毒
        System.out.println("----对视频文件'" + name + "'进行杀毒");
    }
}
